#ifndef MPHTTPURLTESTS_H
#define MPHTTPURLTESTS_H


#include <QObject>
#include <QString>
#include <QtTest>

#include "mpUrl.h"
#include "mpTestConfig.h"
class mpHttpUrlTests : public QObject
{
    Q_OBJECT

public:
    mpHttpUrlTests();

private Q_SLOTS:
    void initTestCase();
    void cleanupTestCase();

    void case_httpurl_create1();
    void case_httpurl_create2();
    void case_httpurl_create3();

private:
    void httpurl_parse(const std::string & url,
                       const std::string & scheme,
                       const std::string & host,
                       unsigned short port,
                       const std::string & path,
                       const std::string & tostring);

    void httpurl_parse2(const MP::HTTP::Url & baseurl,
                        const std::string & relativeUri,
                        const std::string & scheme,
                        const std::string & host,
                        unsigned short port,
                        const std::string & path,
                        const std::string & tostring);

    void httpurl_parse_exec(const MP::HTTP::Url & url,
                            const std::string & scheme,
                            const std::string & host,
                            unsigned short port,
                            const std::string & path,
                            const std::string & tostring);
};



#endif // MPHTTPURLTESTS_H
